class NoticeListBean {
  List<NoticeBean> list = [];
  int total;

  NoticeListBean({
    List<NoticeBean> list,
    int total,
  })  : this.list = list ?? [],
        this.total = total ?? 0;

  NoticeListBean.fromJson(Map<String, dynamic> json) {
    if (json['list'] != null) {
      list = <NoticeBean>[];
      json['list'].forEach((v) => list.add(new NoticeBean.fromJson(v)));
    }
    total = json['total'];
  }
}

class NoticeBean {
  String content;
  String createBy;
  String createTime;
  int hasRead;
  String id;
  String receiver;
  int type;
  String updateBy;
  String updateTime;

  NoticeBean(
      {this.content,
      this.createBy,
      this.createTime,
      this.hasRead,
      this.id,
      this.receiver,
      this.type,
      this.updateBy,
      this.updateTime});

  NoticeBean.fromJson(Map<String, dynamic> json) {
    content = json['content'];
    createBy = json['createBy'];
    createTime = json['createTime'];
    hasRead = json['hasRead'];
    id = json['id'];
    receiver = json['receiver'];
    type = json['type'];
    updateBy = json['updateBy'];
    updateTime = json['updateTime'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['content'] = this.content;
    data['createBy'] = this.createBy;
    data['createTime'] = this.createTime;
    data['hasRead'] = this.hasRead;
    data['id'] = this.id;
    data['receiver'] = this.receiver;
    data['type'] = this.type;
    data['updateBy'] = this.updateBy;
    data['updateTime'] = this.updateTime;
    return data;
  }
}
